package com.ygy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 收藏表
 * </p>
 *
 * @author Ye
 * @since 2024-03-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Favorites implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 收藏ID，主键自增
     */
    @TableId(value = "favorite_id", type = IdType.AUTO)
    private Integer favoriteId;

    /**
     * 用户ID
     */
    private Integer userId;

    /**
     * 商品ID
     */
    private Integer productId;

    /**
     * 创建时间
     */
    private LocalDateTime createdAt;


}
